import Vue from 'vue'
import Router from 'vue-router'
// import Hello from '@/components/Login'
// import Hello from '@/components/Hello'

Vue.use(Router)

export default new Router({
    // mode: 'history',
    routes: [
        {
            path: '/',
            component: resolve => require(['../page/other/question'], resolve)
        },
        {
            path: '/other',
            component: resolve => require(['../page/other/Index'], resolve),
            children: [
                {
                    path: 'question',
                    component: resolve => require(['../page/other/question'], resolve),
                },
                {
                    path: 'service',
                    component: resolve => require(['../page/other/service'], resolve),
                },
                {
                    path: 'register',
                    component: resolve => require(['../page/other/register'], resolve),
                }
            ]
        }
    ]
})
